package com.xxxx.blog.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.xxxx.blog.utils.Entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_comment")
public class Comment extends Entity implements Serializable {

	/**
	 * 主键id
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;
	/**
	 *
	 */
	private String author;
	/**
	 *
	 */
	private String email;
	/**
	 *
	 */
	private String ip;
	/**
	 *  创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	private Date createDate;
	/**
	 *
	 */
	private String content;
	/**
	 * 0待批|1通过|2未通过
	 */
	private Integer status;
	/**
	 *
	 */
	private Integer articleId;
	/**
	 *
	 */
	private Integer parentId;

}
